Real Madrid held off a spirited fightback from Panathinaikos OPAP Athens, winning 76-66 in the Spanish capital to climb into fourth place.